<!--
 * @Author: dingxiao
 * @Date: 2025-07-01 10:30:39
 * @Description: 调研统计列表页面
-->
<template>
  <div class="research-statistics">
    <!-- 标签页 -->
    <el-tabs v-model="activeTab" @tab-click="handleTabClick">
      <el-tab-pane
      v-for="tab in tableData"
      :key="tab.leadingUserId"
      :label="tab.leadingUserName"
      :name="tab.leadingUserId" />
    </el-tabs>
    <slot name="header"/>
    <!-- 表格页 -->
    <jdf-dynamic-table
      ref="dynamicTable"
      v-model="currentTableData"
      :loading="loading"
      :tableDataOption="tableDataOption"
      title-align="center"
      :serialNoCol="false"
      :span-method="spanMethod"
      :isEdit="false"
    />
  </div>
</template>

<script>
import statisticsMixins from '@/mixins/statisticsMixins';

export default {
  mixins: [statisticsMixins],
  props: {
    researchLedgers: {
      type: Array,
      default: () => [],
    },
    loading: {
      type: Boolean,
      default: false,
    },
  },
  mounted() {
    this.fetchTableData();
  },
};
</script>

<style scoped lang="scss">
.el-table {
  margin-top: 20px;
}
</style>
